/**
 * ____________________ *
 *  ____ ____ ____ _  _ *
 *  |___ [__] |--< |\/| *
 * ____________________ *
 *
 * THE CORM PROJECT
 *
 * This file may only be used in accordance with the
 * terms of the Academic Free License ("AFL") v. 3.0,
 * as published by the Open Software Initiative.  A
 * copy of this license is provided in this source
 * release, and may be viewed online at:
 *
 * (http://www.opensource.org/licenses/afl-3.0.php)
 */
package org.eremite.corm.party.relationship;

import org.eremite.corm.Archetype;
import org.eremite.corm.party.Party;

import java.util.Set;

/**
 * Captures the semantics of the role played by a Party in a
 * particular PartyRelationship
 */
public interface PartyRole extends Archetype {

    /* ID */
    public PartyRoleIdentifier getID();
    public void setID(PartyRoleIdentifier id);

    /* PartyRole can be associated with exactly 1 Party */
    public Party getParty();
    public void setParty(Party party);

    /* PartyRole has exactly one PartyRoleType */
    public PartyRoleType getPartyRoleType();
    public void setPartyRoleType(PartyRoleType type);

    /* PartyRole has 0 or more AssignedResponsibilities */
    public Set<AssignedResponsibility> getAssignedResponsibilities();
    public void setAssignedResponsibilities(Set<AssignedResponsibility> assignedResponsibilities);

    /* PartyRole has 0 or more PartyRelationships */
    public Set<PartyRelationship> getPartyRelationships();
    public void setPartyRelationships(Set<PartyRelationship> partyRelationships);

}